from toee import *
from utilities import *

def san_dialog( attachee, triggerer ):
	if (attachee.has_met(triggerer)):
		triggerer.begin_dialog( attachee, 100 )
	else:
		triggerer.begin_dialog( attachee, 1 )	
	return SKIP_DEFAULT

def switch_to_tarah( attachee, triggerer, line):
	npc = find_npc_near(attachee,8805)
	if (npc != OBJ_HANDLE_NULL):
		triggerer.begin_dialog(npc, line)
	return SKIP_DEFAULT

def san_first_heartbeat( attachee, triggerer ):
	if (attachee.map == 5060 and game.global_vars[993] == 3):
		attachee.object_flag_unset(OF_OFF)
	return RUN_DEFAULT